<template>
	<view class="page" v-if="loadding">
		<view class="item" v-html="about.article_content"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				about: '',
				loadding:false
			};
		},
		onLoad() {
			this.getData();
		},
		onPullDownRefresh() {
			this.getData();
			setTimeout(()=>{
				uni.stopPullDownRefresh();
			},1000)
		},
		methods: {
			/*获取数据*/
			getData() {
				let self = this;
				uni.showLoading({
					title: '加载中'
				});
				self._get('plus.article.article/detail', {
						article_id: 10013
				},
				function(res) {
					self.about = res.data.detail;
					self.loadding = true;
					uni.hideLoading();
				});
			},
		}
	}
</script>

<style lang="scss">
	.page {
		width: 100%;
	}

	.item {
		padding: 0 20rpx;
	}
</style>
